package com.hundsun.s3.mrs.pub.utils;

import java.io.File;
import java.io.FileFilter;
import java.net.URL;

import org.apache.commons.io.filefilter.WildcardFileFilter;

public class FileUtils {
	
	/**
	 * 根据path解析成文件list
	 * @param path
	 * @return
	 */
	public static File[] files(String path) {
		FileFilter  wff = new WildcardFileFilter(path);
		URL resource = FileUtils.class.getClassLoader().getResource("");
		File dir = new File(resource.getPath());
		return dir.listFiles(wff);
	}
	
}
